@echo off
echo "适用范围：文件名是 <文件基本名>0~<文件基本名>999 "
echo "例如：abcd0, abcd1,abcd2,....abcd432, 就输入： "
echo "combine abcd 432"
echo "方法：CombineFiles <文件基本名> 999"
echo "如果懂了就继续，否则按ctrl+C停止"
pause
for /l %%i in (0,1,%2) do ren %1%%i %1%%i.mp4

copy %10.mp4 all.mp4

for /l %%i in (1,1,%2) do (
copy /b all.mp4+%1%%i.mp4 all.mp4
)

REM for /l %%i in (1,1,%2) do del %1%%i.mp4

move all.mp4 ../%RANDOM%.mp4

pause
